import req from '@/untils/request'

import * as URL from '@/constants/api'

export function getChannelList() {
  return req({
    method: 'get',
    url: URL.CHANNEL_LIST,
  })
    .then(res => res.data.data.channels)
    .catch(() => [])
}
